home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / win / vb / jstick.exe / JSTICK.TXT < prev   
Encoding:
Text File  |  1993-04-25  |  1.8 KB  |  70 lines

  1.         Joystick DLL            4/26/93
  2.  
  3. ***************************************************************
  4.  
  5. THIS PROGRAM IS SHAREWARE.  IF YOU USE THIS DLL PLEASE SEND 
  6. $15.00 to:  Bret Dabel or Robert Martin
  7.         1124 ROBIN WAY
  8.         SUNNYVALE, CA 94087
  9.  
  10. IF YOU SEND $15.00 YOU WILL RECEIVE THE SOURCE TO THE DLL IN  
  11. C++ AND A LIST OF OTHER ROUTINES WHICH ARE AVAILABLE.
  12.  
  13. ***************************************************************
  14.  
  15. The main reason this DLL was written was to be able to access the
  16. joystick settings for writing games using Visual Basic.  
  17.  
  18. This DLL returns the x and y coordinates and button settings for
  19. either joystick 1 or 2. Also this DLL can read the joystick 
  20. settings by either the hardware or BIOS.
  21.  
  22. To call the DLL you need to supply:
  23.  
  24.       Joystick: 1 = Joystick #1
  25.             2 = Joystick #2
  26.  
  27.     Method: 0 = hardware
  28.             1 = BIOS
  29.  
  30. It returns the:
  31.  
  32.     The function itself returns true or false
  33.  
  34.     x coordinates between 0 and 1000
  35.     y coordinates between 0 and 1000
  36.  
  37.     button #1: 0 = Not pressed
  38.            1 = Pressed
  39.  
  40.     button #2: 0 = Not pressed
  41.            1 = Pressed
  42.         
  43. Example of declare in Visual Basic:
  44.  
  45. Declare Function jstick Lib "JSTICK.DLL" Alias "#2" 
  46.                 (ByVal method As Integer,
  47.                        ByVal joystick As Integer,
  48.                  xcord As Integer,
  49.                  ycord As Integer,
  50.                  but1 As Integer,
  51.                  but2 As Integer) As Integer
  52.  
  53.  
  54. NOTES:
  55. To run this DLL copy it to your windows system directory. 
  56.     (Ex. c:\windows\system\jstick.dll)
  57.  
  58. If you run the example jstick try minimizing it.
  59.  
  60. This DLL will 60 days after its first run.  If you want to run it 
  61. after 60 days please pay for it and receive an unlimited time copy
  62. and the source.
  63.  
  64. If you purchase the source you will need a C++ compiler that can
  65. generate DLL's.
  66.  
  67. If you have any questions please send them to me on Compuserve. 
  68. ID# 71736,242
  69.         
  70.